package com.dragon.modules.yuegou.excel.points;

import com.dragon.modules.media.annotations.ExcelSheet;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.time.LocalDateTime;
import java.util.List;
@com.dragon.modules.media.annotations.ExcelWorkbook(template = "classpath:\\excel\\points\\detail.xlsx")
public class DetailWorkbook {
	@ExcelSheet
	@JsonProperty("积分记录表")
	private List<DetailRow> detail;

	public static class DetailRow {
		@JsonProperty("用户名")
		private String nickName;

		@JsonProperty("手机号")
		private String mobile;

		@JsonProperty("商户名称")
		private String merchantName;

		@JsonProperty("交易类型")
		private String incomeExpenses;

		@JsonProperty("交易场景")
		private String type;

		@JsonProperty("交易时间")
		private LocalDateTime createdTime;

		@JsonProperty("兑换积分")
		private Integer points;

		@JsonProperty("所属商圈")
		private String bcName;

		public String getNickName() {
			return nickName;
		}

		public void setNickName(String nickName) {
			this.nickName = nickName;
		}

		public String getMobile() {
			return mobile;
		}

		public void setMobile(String mobile) {
			this.mobile = mobile;
		}

		public String getMerchantName() {
			return merchantName;
		}

		public void setMerchantName(String merchantName) {
			this.merchantName = merchantName;
		}

		public String getIncomeExpenses() {
			return incomeExpenses;
		}

		public void setIncomeExpenses(String incomeExpenses) {
			this.incomeExpenses = incomeExpenses;
		}

		public String getType() {
			return type;
		}

		public void setType(String type) {
			this.type = type;
		}

		public Integer getPoints() {
			return points;
		}

		public void setPoints(Integer points) {
			this.points = points;
		}

		public LocalDateTime getCreatedTime() {
			return createdTime;
		}

		public void setCreatedTime(LocalDateTime createdTime) {
			this.createdTime = createdTime;
		}


		public String getBcName() {
			return bcName;
		}

		public void setBcName(String bcName) {
			this.bcName = bcName;
		}
	}

	public List<DetailRow> getDetail() {
		return detail;
	}

	public void setDetail(List<DetailRow> detail) {
		this.detail = detail;
	}
}
